/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.zcm.modules.zhaocai.entity;

import org.hibernate.validator.constraints.Length;

import com.zcm.common.persistence.DataEntity;

/**
 * 软件版本发布管理Entity
 * @author www
 * @version 2018-04-30
 */
public class ZcmToolVersion extends DataEntity<ZcmToolVersion> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String version;		// 软件版本号
	private String filePath;		// 打包的zip文件
	private String enabled;		// 0：禁用 1：启用
	private long fileSize;
	
	public ZcmToolVersion() {
		super();
	}

	public ZcmToolVersion(String id){
		super(id);
	}

	@Length(min=0, max=200, message="名称长度必须介于 0 和 200 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="软件版本号长度必须介于 1 和 64 之间")
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
	@Length(min=0, max=500, message="打包的zip文件长度必须介于 0 和 500 之间")
	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	
	@Length(min=1, max=1, message="0：禁用 1：启用长度必须介于 1 和 1 之间")
	public String getEnabled() {
		return enabled;
	}

	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}

	public long getFileSize() {
		return fileSize;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
}